package tc.jv.task7;

import tc.jv.task4.Vector;

public class Vectors extends tc.jv.task6.Vectors
{
	
	protected static VectorFactory vf = new ArrayVectorFactory();
	
	public static void setVectorFactory(VectorFactory vf)
	{
		Vectors.vf = vf;
	}
	
	public static Vector createInstance()
	{
		return vf.createVector();
	}
	
	public static Vector createInstance(int size)
	{
		return vf.createVector(size);
	}
	
}
